#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
double CiFang(double x, double n) {
	if (n == 0)
		return 1;
	else if (n > 0)
		return x * CiFang(x, n - 1);
	else
		return 1 / x * CiFang( x, n + 1);
}
int main() {

	printf("%lf", CiFang(-2, -3));
	return 0;
}